package cn.liujing.controller;

import cn.liujing.entity.CommonResult;
import cn.liujing.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@Slf4j
public class OrderController
{
    @Resource
    private OrderService orderService;


    @GetMapping("/payment/getbyId/{id}")
    public CommonResult getPaymentById(@PathVariable int id){
        return orderService.getPaymentById(id);
    }

}
